import {useRef} from "react";

const App = () => {

    const inputRef = useRef(null);

    const changeValue = () => {
        console.log(inputRef.current.value)
    }
    return (
        <div className="App">
            <input type="text" ref={inputRef} onChange={changeValue}/>
        </div>
    )
}
export default App;
